home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
vmrreconcile.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
911b
|
29 lines
CREATE OR REPLACE VIEW VMRRECONCILE AS SELECT
MRPEND.subbatch_seq,
MRPEND.prpend_indx,
SUBBATCH.coin_one pennies,
SUBBATCH.coin_two nickels,
SUBBATCH.coin_three dimes,
SUBBATCH.coin_four quarters,
SUBBATCH.coin_five half_dollars,
SUBBATCH.coin_six dollar_coin,
SUBBATCH.coin_total_value,
SUBBATCH.coin_seven * 100 sm_tokens,
SUBBATCH.coin_eight * 100 lg_tokens,
SUBBATCH.bill_one ones,
SUBBATCH.bill_two fives,
SUBBATCH.bill_three tens,
SUBBATCH.bill_four twenties,
SUBBATCH.receipt_total bill_total,
SUBBATCH.grand_total,
SUBBATCH.label_c orig_cashbox_glid,
CASHBOXTOTALS.count_date,
CASHBOXTOTALS.cashbox_glid,
CASHBOXTOTALS.coin_total adj_coin_total,
CASHBOXTOTALS.bill_total adj_bill_total,
CASHBOXTOTALS.grand_total adj_grand_total
FROM MRPEND, SUBBATCH, CASHBOXTOTALS
WHERE
SUBBATCH.subbatch_seq = MRPEND.subbatch_seq AND
CASHBOXTOTALS.cashbox_total_seq = MRPEND.subbatch_seq;